package com.fangzc.codegen.entity.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 表定义层。
 *
 * @author FANGZC-TB14
 * @since 2023-05-27
 */
public class TGenTable extends TableDef {

    public static final TGenTable gen_table = new TGenTable("gen_table");

    public QueryColumn table_id = new QueryColumn(this, "table_id");
    public QueryColumn table_name = new QueryColumn(this, "table_name");
    public QueryColumn table_comment = new QueryColumn(this, "table_comment");
    public QueryColumn sub_table_name = new QueryColumn(this, "sub_table_name");
    public QueryColumn sub_table_fk_name = new QueryColumn(this, "sub_table_fk_name");
    public QueryColumn class_name = new QueryColumn(this, "class_name");
    public QueryColumn tpl_category = new QueryColumn(this, "tpl_category");
    public QueryColumn package_name = new QueryColumn(this, "package_name");
    public QueryColumn module_name = new QueryColumn(this, "module_name");
    public QueryColumn business_name = new QueryColumn(this, "business_name");
    public QueryColumn function_name = new QueryColumn(this, "function_name");
    public QueryColumn function_author = new QueryColumn(this, "function_author");
    public QueryColumn gen_type = new QueryColumn(this, "gen_type");
    public QueryColumn gen_path = new QueryColumn(this, "gen_path");
    public QueryColumn options = new QueryColumn(this, "options");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");
    public QueryColumn remark = new QueryColumn(this, "remark");

    public QueryColumn[] default_columns = new QueryColumn[]{table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark};
    public QueryColumn[] all_columns = new QueryColumn[]{table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark};

    public TGenTable(String tableName) {
        super(tableName);
    }
}
